/*
 * InsuranceValidatorTests.h
 *
 *  Created on: 01 Ιουν 2010
 *      Author: Sartios
 */

#ifndef INSURANCEVALIDATORTESTS_H_
#define INSURANCEVALIDATORTESTS_H_

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

#include "../../../Validators/TeacherValidators/TeacherInsuranceNumberValidator/IInsuranceNumberValidator.h"

namespace Teacher{

	class InsuranceValidatorTests : public CppUnit::TestFixture{
		CPPUNIT_TEST_SUITE(InsuranceValidatorTests);

		CPPUNIT_TEST(insuranceNumberLengthIsAppropriate_NumberSmallerThan4_ReturnFalse);
		CPPUNIT_TEST(insuranceNumberLengthIsAppropriate_NumberBiggerThan15_ReturnFalse);
		CPPUNIT_TEST(insuranceNumberLengthIsAppropriate_NumberBetween4And15_ReturnTrue);

		CPPUNIT_TEST_SUITE_END();
	public:

		void	setUp();
		void	tearDown();

		void	insuranceNumberLengthIsAppropriate_NumberSmallerThan4_ReturnFalse();

		void	insuranceNumberLengthIsAppropriate_NumberBiggerThan15_ReturnFalse();

		void	insuranceNumberLengthIsAppropriate_NumberBetween4And15_ReturnTrue();

	private:
		IInsuranceNumberValidator *validator_;
	};
}
#endif /* INSURANCEVALIDATORTESTS_H_ */
